package com.design.pattern.strategy;

import org.springframework.stereotype.Component;

@Component
public class AHandler  implements Handler  {
    @Override
    public void test(String name) {
        System.out.println("执行A。。。。。。。。。");
    }

    @Override
    public void afterPropertiesSet()  {
        //注册A到map里面
        Factory.register("A", this);
    }
}
